<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>Class application\core\engines\sae\SaeFile | IBOS open source</title>

	<link rel="stylesheet" href="resources/bootstrap.min.css?973e37a8502921d56bc02bb55321f45b072b6f71">
	<link rel="stylesheet" href="resources/style.css?49f43d3208c5d7e33fa16d36107a345bf11cc00d">

</head>

<body>
	<nav id="navigation" class="navbar navbar-default navbar-fixed-top">
		<div class="container-fluid">
			<div class="navbar-header">
				<a href="index.html" class="navbar-brand">IBOS open source</a>
			</div>
			<div class="collapse navbar-collapse">

                <form id="search" class="navbar-form navbar-left" role="search">
                    <input type="hidden" name="cx" value="">
                    <input type="hidden" name="ie" value="UTF-8">
                    <div class="form-group">
                        <input type="text" name="q" class="search-query form-control" placeholder="Search">
					</div>
				</form>

				<ul class="nav navbar-nav">
					<li>
						<a href="namespace-application.core.engines.sae.html" title="Summary of application\core\engines\sae"><span>Namespace</span></a>
					</li>
					<li class="active">
<span>Class</span>					</li>





				</ul>
			</div>
		</div>
	</nav>

	<div id="left">
	<div id="menu">

		<div id="groups">
				<h3>Namespaces</h3>
			<ul>
					<li class="active">
						<a href="namespace-application.html">
							application<span></span>
						</a>
							<ul>
					<li class="active">
						<a href="namespace-application.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.html">
							cache<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.cache.driver.html">
							driver						</a>
							</li>
					<li>
						<a href="namespace-application.core.cache.provider.html">
							provider						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.core.controllers.html">
							controllers						</a>
							</li>
					<li class="active">
						<a href="namespace-application.core.engines.html">
							engines<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.core.engines.local.html">
							local						</a>
							</li>
					<li class="active">
						<a href="namespace-application.core.engines.sae.html">
							sae						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.core.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.core.modules.html">
							modules						</a>
							</li>
					<li>
						<a href="namespace-application.core.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.core.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.html">
							modules<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.html">
							article<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.article.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.article.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.calendar.html">
							calendar<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.calendar.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.calendar.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.contact.html">
							contact<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.contact.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.contact.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.dashboard.html">
							dashboard<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.dashboard.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.dashboard.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.department.html">
							department<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.department.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.department.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.diary.html">
							diary<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.diary.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.diary.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.email.html">
							email<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.email.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.email.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.main.html">
							main<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.main.behaviors.html">
							behaviors						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.main.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.message.html">
							message<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.html">
							core<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.co.html">
							co						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.html">
							wx<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.message.core.wx.callback.html">
							callback						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.core.wx.event.html">
							event						</a>
							</li>
								</ul></li></ul></li>
					<li>
						<a href="namespace-application.modules.message.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.message.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.mobile.html">
							mobile<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.mobile.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.mobile.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.position.html">
							position<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.position.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.position.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.recruit.html">
							recruit<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.recruit.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.utils.html">
							utils						</a>
							</li>
					<li>
						<a href="namespace-application.modules.recruit.widgets.html">
							widgets						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.role.html">
							role<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.role.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.role.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.user.html">
							user<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.user.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.user.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.vote.html">
							vote<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.vote.components.html">
							components						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.vote.utils.html">
							utils						</a>
							</li>
								</ul></li>
					<li>
						<a href="namespace-application.modules.weibo.html">
							weibo<span></span>
						</a>
							<ul>
					<li>
						<a href="namespace-application.modules.weibo.controllers.html">
							controllers						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.core.html">
							core						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.model.html">
							model						</a>
							</li>
					<li>
						<a href="namespace-application.modules.weibo.utils.html">
							utils						</a>
							</li>
								</ul></li></ul></li></ul></li>
			</ul>
		</div>


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li class="active"><a href="class-application.core.engines.sae.SaeFile.html">SaeFile</a></li>
				<li><a href="class-application.core.engines.sae.SaeIo.html">SaeIo</a></li>
				<li><a href="class-application.core.engines.sae.SaeUpload.html">SaeUpload</a></li>
			</ul>





		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
	<div id="rightInner">
<div id="content" class="class">
	<h1>Class SaeFile</h1>











	<div class="alert alert-info">
		
		
		<b>Namespace:</b> <a href="namespace-application.html">application</a>\<a href="namespace-application.core.html">core</a>\<a href="namespace-application.core.engines.html">engines</a>\<a href="namespace-application.core.engines.sae.html">sae</a><br>
		

				<b>Copyright:</b>
				Copyright &copy; 2012-2013 IBOS Inc<br>
				<b>Author:</b>
				banyanCheung <a href="m&#97;&#105;&#108;&#116;&#111;&#58;&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;">&#x62;&#x61;&#x6e;&#x79;&#x61;&#x6e;&#x40;i&#98;&#111;&#115;&#46;&#99;&#111;&#109;&#x2e;&#x63;&#x6e;</a><br>
			<b>Located at</b> system/core/engines/sae/SaeFile.php		<br>
	</div>



		<div class="panel panel-default">
			<div class="panel-heading"><h2>Methods summary</h2></div>
			<table class="summary table table-bordered table-striped methods" id="methods">
		<tr data-order="__construct" id="___construct">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#___construct">#</a>
			<code>__construct( <span>string <var>$domain</var> = <span class="php-quote">'data'</span></span>, <span>string <var>$ak</var> = <span class="php-quote">''</span></span>, <span>string <var>$sk</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>构造函数,初始化 domain 以及 storage 对象</p>
			</div>

			<div class="description detailed hidden">
				<p>构造函数,初始化 domain 以及 storage 对象</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$domain</var></dt>
						<dd>storage的名称</dd>
						<dt><var>$ak</var></dt>
						<dd>accessKey</dd>
						<dt><var>$sk</var></dt>
						<dd>secretKey</dd>
					</dl></div>





			</div>
			</div></td>
		</tr>
		<tr data-order="getInstance" id="_getInstance">

			<td class="attributes"><code>
				 public static
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getInstance">#</a>
			<code>getInstance( <span> <var>$domain</var> = <span class="php-quote">'data'</span></span>, <span> <var>$ak</var> = <span class="php-quote">''</span></span>, <span> <var>$sk</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
		<tr data-order="getList" id="_getList">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getList">#</a>
			<code>getList( <span>string <var>$dirName</var></span>, <span>boolean <var>$showAll</var> = <span class="php-keyword1">false</span></span>, <span>boolean <var>$showDir</var> = <span class="php-keyword1">false</span> </span> )</code>

			<div class="description short">
				<p>获取文件列表 默认会将文件做筛选，不显示子目录的文件
.txt 表示搜索 所有*.txt
/ 表示搜索 所有目录 （假设以/结尾则是目录）
aaa/ 表示搜索 aaa目录下的文件</p>
			</div>

			<div class="description detailed hidden">
				<p>获取文件列表 默认会将文件做筛选，不显示子目录的文件
.txt 表示搜索 所有*.txt
/ 表示搜索 所有目录 （假设以/结尾则是目录）
aaa/ 表示搜索 aaa目录下的文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dirName</var></dt>
						<dd></dd>
						<dt><var>$showAll</var></dt>
						<dd></dd>
						<dt><var>$showDir</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getFiles" id="_getFiles">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getFiles">#</a>
			<code>getFiles( <span>string <var>$dirName</var></span>, <span>boolean <var>$fold</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>获取指定目录下的所有文件名</p>
			</div>

			<div class="description detailed hidden">
				<p>获取指定目录下的所有文件名</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dirName</var></dt>
						<dd>目录名</dd>
						<dt><var>$fold</var></dt>
						<dd>为 true 则不遍历子目录</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array<br><p>array(
'dirNum'=>''
'dirNum'=>''
'dirs'=>array()
'files'=>array()
);</p>
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getDirs" id="_getDirs">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getDirs">#</a>
			<code>getDirs( <span>string <var>$dirName</var></span>, <span>boolean <var>$fold</var> = <span class="php-keyword1">true</span> </span> )</code>

			<div class="description short">
				<p>获得文件夹列表</p>
			</div>

			<div class="description detailed hidden">
				<p>获得文件夹列表</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dirName</var></dt>
						<dd></dd>
						<dt><var>$fold</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="uploadFile" id="_uploadFile">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_uploadFile">#</a>
			<code>uploadFile( <span>type <var>$destFileName</var></span>, <span>type <var>$srcFileName</var></span>, <span>type <var>$attr</var></span> )</code>

			<div class="description short">
				<p>上传文件</p>
			</div>

			<div class="description detailed hidden">
				<p>上传文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$destFileName</var></dt>
						<dd></dd>
						<dt><var>$srcFileName</var></dt>
						<dd></dd>
						<dt><var>$attr</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getFileInfo" id="_getFileInfo">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getFileInfo">#</a>
			<code>getFileInfo( <span>string <var>$fileName</var></span> )</code>

			<div class="description short">
				<p>获得文件资料
目前支持的文件属性
 - expires: 浏览器缓存超时，功能与Apache的Expires配置相同
 - encoding: 设置通过Web直接访问文件时，Header中的Content-Encoding。
 - type: 设置通过Web直接访问文件时，Header中的Content-Type。</p>
			</div>

			<div class="description detailed hidden">
				<p>获得文件资料
目前支持的文件属性 - expires: 浏览器缓存超时，功能与Apache的Expires配置相同 - encoding: 设置通过Web直接访问文件时，Header中的Content-Encoding。 - type: 设置通过Web直接访问文件时，Header中的Content-Type。</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fileName</var></dt>
						<dd><pre><span class="php-var">$attr</span> = <span class="php-keyword1">array</span> (
<span class="php-quote">'type'</span>=&gt;<span class="php-quote">'文件类型'</span>,
<span class="php-quote">'length'</span>=&gt;文件长度,
<span class="php-quote">'datetime'</span>=&gt;<span class="php-quote">'添加时间'</span>
)
<span class="php-keyword1">Array</span> (
[fileName] =&gt; bbb/<span class="php-num">222</span>.txt <span class="php-comment">#文件名</span>
[length] =&gt; <span class="php-num">1</span> <span class="php-comment">#文件长度</span>
[datetime] =&gt; <span class="php-num">1307091828</span> <span class="php-comment">#添加时间</span>
[type] =&gt; text/plain <span class="php-comment">#文件类型</span>
)</pre></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="isDir" id="_isDir">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_isDir">#</a>
			<code>isDir( <span>string <var>$dirName</var></span> )</code>

			<div class="description short">
				<p>简单字符串检测是否目录</p>
			</div>

			<div class="description detailed hidden">
				<p>简单字符串检测是否目录</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dirName</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="createDir" id="_createDir">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_createDir">#</a>
			<code>createDir( <span>string <var>$dirName</var></span> )</code>

			<div class="description short">
				<p>创建 storage 目录</p>
			</div>

			<div class="description detailed hidden">
				<p>创建 storage 目录</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dirName</var></dt>
						<dd>目录名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="createFile" id="_createFile">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_createFile">#</a>
			<code>createFile( <span>string <var>$fileName</var></span>, <span>string <var>$content</var> = <span class="php-quote">' '</span> </span> )</code>

			<div class="description short">
				<p>创建文件</p>
			</div>

			<div class="description detailed hidden">
				<p>创建文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$fileName</var></dt>
						<dd>文件名</dd>
						<dt><var>$content</var></dt>
						<dd>写入的内容</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="writeFile" id="_writeFile">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_writeFile">#</a>
			<code>writeFile( <span>string <var>$file</var></span>, <span>string <var>$content</var> = <span class="php-quote">' '</span></span>, <span>array <var>$attr</var> = <span class="php-keyword1">array</span>() </span> )</code>

			<div class="description short">
				<p>写文件</p>
			</div>

			<div class="description detailed hidden">
				<p>写文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd>文件名</dd>
						<dt><var>$content</var></dt>
						<dd>写入的内容</dd>
						<dt><var>$attr</var></dt>
						<dd>附加参数</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="copyFile" id="_copyFile">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_copyFile">#</a>
			<code>copyFile( <span>string <var>$old</var></span>, <span>string <var>$new</var></span> )</code>

			<div class="description short">
				<p>复制文件</p>
			</div>

			<div class="description detailed hidden">
				<p>复制文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$old</var></dt>
						<dd>旧文件</dd>
						<dt><var>$new</var></dt>
						<dd>新文件</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="renameFile" id="_renameFile">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_renameFile">#</a>
			<code>renameFile( <span>string <var>$old</var></span>, <span>string <var>$new</var></span> )</code>

			<div class="description short">
				<p>重命名文件</p>
			</div>

			<div class="description detailed hidden">
				<p>重命名文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$old</var></dt>
						<dd>旧文件</dd>
						<dt><var>$new</var></dt>
						<dd>新文件</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="renameDir" id="_renameDir">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_renameDir">#</a>
			<code>renameDir( <span>string <var>$old</var></span>, <span>string <var>$new</var></span> )</code>

			<div class="description short">
				<p>重命名文件夹</p>
			</div>

			<div class="description detailed hidden">
				<p>重命名文件夹</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$old</var></dt>
						<dd>原来的名称</dd>
						<dt><var>$new</var></dt>
						<dd>新名称</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="moveFile" id="_moveFile">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_moveFile">#</a>
			<code>moveFile( <span>string <var>$old</var></span>, <span>string <var>$new</var></span> )</code>

			<div class="description short">
				<p>移动文件</p>
			</div>

			<div class="description detailed hidden">
				<p>移动文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$old</var></dt>
						<dd>旧文件</dd>
						<dt><var>$new</var></dt>
						<dd>新文件</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="readFile" id="_readFile">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_readFile">#</a>
			<code>readFile( <span>string <var>$file</var></span> )</code>

			<div class="description short">
				<p>读取文件内容</p>
			</div>

			<div class="description detailed hidden">
				<p>读取文件内容</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd>文件名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fileExists" id="_fileExists">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fileExists">#</a>
			<code>fileExists( <span>string <var>$file</var></span> )</code>

			<div class="description short">
				<p>文件是否存在在storage中</p>
			</div>

			<div class="description detailed hidden">
				<p>文件是否存在在storage中</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd>文件名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="dirExists" id="_dirExists">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_dirExists">#</a>
			<code>dirExists( <span>string <var>$dir</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>文件夹是否存在</p>
			</div>

			<div class="description detailed hidden">
				<p>文件夹是否存在</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dir</var></dt>
						<dd>文件夹名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="clearDir" id="_clearDir">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_clearDir">#</a>
			<code>clearDir( <span>string <var>$dir</var></span> )</code>

			<div class="description short">
				<p>清空指定目录里文件 （不包含子目录）</p>
			</div>

			<div class="description detailed hidden">
				<p>清空指定目录里文件 （不包含子目录）</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dir</var></dt>
						<dd>指定目录</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="deleteFile" id="_deleteFile">

			<td class="attributes"><code>
				 public 
				boolean
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_deleteFile">#</a>
			<code>deleteFile( <span>string <var>$file</var></span> )</code>

			<div class="description short">
				<p>删除文件</p>
			</div>

			<div class="description detailed hidden">
				<p>删除文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd>文件名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						boolean<br>删除成功与否
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="hasChildren" id="_hasChildren">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_hasChildren">#</a>
			<code>hasChildren( <span>type <var>$dirName</var></span> )</code>

			<div class="description short">
				<p>文件夹是否有子目录</p>
			</div>

			<div class="description detailed hidden">
				<p>文件夹是否有子目录</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dirName</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getMimeType" id="_getMimeType">

			<td class="attributes"><code>
				 public 
				type
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getMimeType">#</a>
			<code>getMimeType( <span>type <var>$file</var></span> )</code>

			<div class="description short">
				<p>根据文件名获得 mime信息</p>
			</div>

			<div class="description detailed hidden">
				<p>根据文件名获得 mime信息</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						type
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fileName" id="_fileName">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fileName">#</a>
			<code>fileName( <span>string <var>$path</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>获得web访问路径</p>
			</div>

			<div class="description detailed hidden">
				<p>获得web访问路径</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$path</var></dt>
						<dd>要读取的文件名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="errmsg" id="_errmsg">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_errmsg">#</a>
			<code>errmsg( )</code>

			<div class="description short">
				<p>获取错误代码</p>
			</div>

			<div class="description detailed hidden">
				<p>获取错误代码</p>



					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="formatDir" id="_formatDir">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_formatDir">#</a>
			<code>formatDir( <span>string <var>$dirName</var></span> )</code>

			<div class="description short">
				<p>格式化目录名</p>
			</div>

			<div class="description detailed hidden">
				<p>格式化目录名</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$dirName</var></dt>
						<dd>目录名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="imageSize" id="_imageSize">

			<td class="attributes"><code>
				 public 
				array
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_imageSize">#</a>
			<code>imageSize( <span>string <var>$image</var></span> )</code>

			<div class="description short">
				<p>图形规格</p>
			</div>

			<div class="description detailed hidden">
				<p>图形规格</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$image</var></dt>
						<dd></dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						array
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="getTempPath" id="_getTempPath">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_getTempPath">#</a>
			<code>getTempPath( )</code>

			<div class="description short">
				<p>获取新浪临时目录路径</p>
			</div>

			<div class="description detailed hidden">
				<p>获取新浪临时目录路径</p>



					<h4>Returns</h4>
					<div class="list">
						string
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fileSize" id="_fileSize">

			<td class="attributes"><code>
				 public 
				integer
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fileSize">#</a>
			<code>fileSize( <span>string <var>$file</var></span> )</code>

			<div class="description short">
				<p>获取文件大小</p>
			</div>

			<div class="description detailed hidden">
				<p>获取文件大小</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd>文件名</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						integer
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="fetchTemp" id="_fetchTemp">

			<td class="attributes"><code>
				 public 
				string
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_fetchTemp">#</a>
			<code>fetchTemp( <span>string <var>$file</var></span>, <span>sstring <var>$suffix</var> = <span class="php-quote">''</span> </span> )</code>

			<div class="description short">
				<p>读取一个网络文件到临时目录并生成临时文件</p>
			</div>

			<div class="description detailed hidden">
				<p>读取一个网络文件到临时目录并生成临时文件</p>


					<h4>Parameters</h4>
					<div class="list"><dl>
						<dt><var>$file</var></dt>
						<dd>要读取的文件URL</dd>
						<dt><var>$suffix</var></dt>
						<dd>生成临时文件的后缀，为空则自动读取</dd>
					</dl></div>

					<h4>Returns</h4>
					<div class="list">
						string<br>临时文件地址
					</div>




			</div>
			</div></td>
		</tr>
		<tr data-order="download" id="_download">

			<td class="attributes"><code>
				 public 
				
				
				</code>
			</td>

			<td class="name"><div>
			<a class="anchor" href="#_download">#</a>
			<code>download( <span> <var>$attach</var></span>, <span> <var>$downloadInfo</var></span> )</code>

			<div class="description short">
				
			</div>

			<div class="description detailed hidden">
				







			</div>
			</div></td>
		</tr>
			</table>
		</div>











		<div class="panel panel-default">
            <div class="panel-heading"><h2>Properties summary</h2></div>
			<table class="summary table table-bordered table-striped properties" id="properties">
		<tr data-order="filesInfo" id="$filesInfo">
			<td class="attributes"><code>
				protected  
				array
			</code></td>

			<td class="name">
<var>$filesInfo</var>
				<div class="description short">
					
				</div>

				<div class="description detailed hidden">
					

				</div>
			</td>
			<td class="value">
				<div>
					<a href="#$filesInfo" class="anchor">#</a>
					<code><span class="php-keyword1">array</span>()</code>
				</div>
			</td>
		</tr>
			</table>
		</div>






</div>
	</div>

	<div id="footer">
		IBOS open source API documentation generated by <a href="http://apigen.org">ApiGen</a>
	</div>
</div>
<script src="resources/combined.js"></script>
<script src="elementlist.js"></script>
</body>
</html>
